package com.jzj.mapper;

import com.jzj.pojo.Book;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface BookMapper {



    @Insert("")
    int addBook();

    @Delete("")
    int delBook();

    @Update("")
    int updateBook();

    @Select("select bookId,bookName,bookAuthor,bookPublisher from book")
    List<Book> selectBook();


    @Select("select bookId,bookName,bookAuthor,bookPublisher from book where bookId=#{id}")
    Book selectOneBook(int id);





}
